package com.jdd.modules.deviceLog.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jdd.modules.deviceLog.entity.TUserCmdLog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jdd.modules.userOptionLog.entity.TUserOptionLog;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ls
 * @since 2022-10-20
 */
public interface ITUserCmdLogService extends IService<TUserCmdLog> {

    /**
     * 通过userid查看用户的设备
     * @author zxl
    * @param  userId
     * @date 2022/10/20 20:15
     * @return java.util.List<com.jdd.modules.deviceLog.entity.TUserCmdLog>
     * @throws
     */
    List<TUserCmdLog> selectDeviceByUserId(String userId);
    /**
     * 设置状态
     * @author zxl
    * @param  userId
    * @param  status
     * @date 2022/10/20 20:37
     * @return void
     * @throws
     */
    void setOptionStatus (String userId , int status);
    IPage<TUserOptionLog> findList(Page<TUserOptionLog> page, TUserOptionLog tUserOptionLog);
}
